package com.photographysharing.mapper;

import com.photographysharing.dto.MenusDTO;
import com.photographysharing.dto.PhotoDTO;
import com.photographysharing.entity.Menus;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Z
* @description 针对表【menus】的数据库操作Mapper
* @createDate 2024-06-06 15:31:56
* @Entity com.photographysharing.entity.Menus
*/
@Mapper
public interface MenusMapper extends BaseMapper<Menus> {

    List<MenusDTO> selectParent(@Param("index") int index, @Param("size") int size,@Param("role") String role);

    List<MenusDTO>  selectChildren(@Param("parentId")int parentId);

    int selectCount(@Param("parentId") int parentId);
}




